|
Ubicación en el Menú |
---|
Borrador → B-Spline |
Entornos de trabajo |
Borrador, Arquitectura |
Atajo de teclado por defecto |
B S |
Introducido en versión |
0.7 |
Ver también |
Borrador Hilo, Borrador CúbicaBezCurva, Borrador BezCurva |
El comando Borrador BSpline crea una curva B-spline a partir de varios puntos.
El comando Borrador BSpline especifica los puntos exactos por los que pasará la curva. Los comandos Borrador BezCurva y Borrador CúbicaBezCurva, por otro lado, utilizan puntos de control para definir la posición y la curvatura de la spline.
Spline definida por múltiples puntos
Ver también: Bandeja Borrador, Borrador Atrapar y Borrador Restricción.
Los atajos de teclado de un solo carácter disponibles en el panel de tareas se pueden cambiar. Ver Preferencias de Borrador. Los atajos mencionados aquí son los atajos por defecto.
true
y tendrá una cara rellena, siempre y cuando esté cerrada y no se auto-intersecte. Tenga en cuenta que una spline que se auto-interseque con una cara no se mostrará correctamente, para tal spline DatosMake Face debe establecerse en false
.
Ver también: Editor de propiedades.
Un objeto Borrador BSpline deriva de un Pieza2DObjeto y hereda todas sus propiedades. También tiene las siguientes propiedades adicionales:
Draft
Area
): (read-only) specifies the area of the face of the spline. The value will be 0.0
if DatosMake Face if false
or the face cannot be created.Bool
): specifies if the spline is closed or not. If the spline is initially open this value is false
, setting it to true
will draw a curve segment to close the spline. If the spline is initially closed this value is true
, setting it to false
will remove the last curve segment and make the spline open.Bool
): specifies if the spline makes a face or not. If it is true
a face is created, otherwise only the perimeter is considered part of the object. This property only works if DatosClosed is true
and if the spline does not self-intersect.Float
): affects the shape of the spline.VectorList
): specifies the points of the spline in its local coordinate system.
Draft
Length
): specifies the size of the symbol displayed at the end of the spline.Enumeration
): specifies the type of symbol displayed at the end of the spline, which can be Dot
, Circle
, Arrow
, Tick
or Tick-2
.Bool
): specifies whether to show a symbol at the end of the spline, so it can be used as an annotation line.Enumeration
): specifies the Draft Pattern with which to fill the face of the closed spline. This property only works if DatosMake Face is true
and if VistaDisplay Mode is Flat Lines
.Float
): specifies the size of the Draft Pattern.
Ver también: Documentación de la API autogenerada y Fundamentos de FreeCAD Guión.
Para crear una Borrador BSpline utilice el método make_bspline
(introducido en la versión 0.19) del módulo Borrador. Este método sustituye al método obsoleto makeBSpline
.
bspline = make_bspline(pointslist, closed=False, placement=None, face=None, support=None)
bspline = make_bspline(Part.Wire, closed=False, placement=None, face=None, support=None)
bspline
con la lista de puntos dada, pointslist
.
FreeCAD.Vector
, con unidades en milímetros.Part.Wire
, del que se extraen los puntos.closed
es True
, o si el primer y el último punto son idénticos, la spline está cerrada.placement
es None
la spline se crea en el origen.face
es True
, y la spline está cerrada, la spline hará una cara, es decir, aparecerá rellena.Ejemplo:
import FreeCAD as App
import Draft
doc = App.newDocument()
p1 = App.Vector(0, 0, 0)
p2 = App.Vector(1000, 1000, 0)
p3 = App.Vector(2000, 0, 0)
spline1 = Draft.make_bspline([p1, p2, p3], closed=False)
spline2 = Draft.make_bspline([p1, 2*p3, 1.3*p2], closed=False)
spline3 = Draft.make_bspline([1.3*p3, p1, -1.7*p2], closed=False)
doc.recompute()